<extend name="Index:info"/>
<block name="body">
<div class="panel admin-panel">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>用户详情</strong>
    <a href="javascript:;" class="return" style="display:block;float:right;">返回用户列表</a>
    <script>
      $('.return').click(function(){
        history.go(-1);
      });
    </script>
  </div>
<style>
  .tips{border:1px solid #dddddd;margin-top:7px;}
</style>
  <div class="body-content" >
    <form method="post" class="form-x" action="" style="border:1px solid #ddd;width:60%;margin:0 auto;">
      <div class="form-group">
        <div class="label" >
          <label style="">头像：</label>
        </div>
        <div class="field">
          <img src="__PUBLIC__/{$user.image_id}" height="100">
        </div>
      </div>
      <div class="form-group" >
        <div class="label">
          <label>账号：</label>
        </div>
        <div class="field">
          <div class="tips">{$user.user_name}</div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>密码：</label>
        </div>
        <div class="field">
          <div class="tips">{$user.password}</div>
        </div>
      </div>
      <div class="form-group">
      <div class="label">
        <label>昵称：</label>
      </div>
      <div class="field">
         <div class="tips">{$user.nickname}</div>
      </div>
    </div>
      <div class="form-group">
        <div class="label">
          <label>余额：</label>
        </div>
        <div class="field">
         <div class="tips">￥ {$user.balance}</div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>积分：</label>
        </div>
        <div class="field">
          <div class="tips">{$user.integral}</div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>年龄：</label>
        </div>
        <div class="field">
           <div class="tips">{$user.age}</div>
        </div>
      </div>
      <div class="form-group">
        <div class="label" >
          <label>性别：</label>
        </div>
        <div class="field">
           <div class="tips">{$user.sex}</div>
        </div>
      </div>

      <div class="form-group">
        <div class="label">
          <label>地址：</label>
        </div>
        <div class="field">
         <div class="tips">{$user.address}</div>
        </div>
      </div>

      <div class="form-group">
        <div class="label">
          <label>qq：</label>
        </div>
        <div class="field">
          <div class="tips"><if condition = "$user['qq'] == 0">未认证<else/>{$user.qq}</if></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>微信：</label>
        </div>
        <div class="field">
          <div class="tips"><if condition = "$user['wechat'] == 0">未认证<else/>{$user.wechat}</if></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>邮箱：</label>
        </div>
        <div class="field">
          <div class="tips"><if condition = "$user['email'] == 0">未认证<else/>{$user.email}</if></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>Vip：</label>
        </div>
        <div class="field">
          <div class="tips"> {$user.coupon_name}</div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>优惠券：</label>
        </div>
        <div class="field">
          <div class="tips">{$user.coupon} 张</div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>上一次登录时间：</label>
        </div>
        <div class="field">
          <div class="tips">{$user.ltime|date="Y-m-d H:i:s",###}</div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>创建时间：</label>
        </div>
        <div class="field">
          <div class="tips">{$user.create_time|date="Y-m-d H:i:s",###}</div>
        </div>
      </div>

    </form>
  </div>
</div>

</block>